def factorial(n)
    if n == 1
        return 1
    else
        return n * factorial(n-1)
    end
end


if __FILE__ == $0
    puts factorial(ARGV.last.to_i)
end
